<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Hello</title>
    <th:block th:replace="welcome :: static-file"></th:block>
</head>
<body>
<th:block th:replace="welcome :: navbar"></th:block>
<div class="layui-container">
    <h1>Hello</h1>
    <h2 th:text="${username}"></h2>
    <shiro:hasRole name="admin">　
        仅管理员角色可见 　
    </shiro:hasRole>
    <shiro:hasRole name="adfd">　
        仅管理员角色可见dfeadfaed 　
    </shiro:hasRole>
</div>
</body>
</html>